package org.dromara.hm.enums;

/**
 * 退货退款类型枚举
 *
 * @Author If404 Hzy
 * @Date 2025-2025/1/17-01:09
 * @Version 1.0
 */
public enum SaleOrderRefundTypeEnum
{
    // 回款
    REFUND_ONLY(3, "仅退款"),
    RETURN_AND_REFUND(2, "全部退"),
    RETURN_ONLY(4, "仅退货"),
    RETURN_AND_PAY(1, "部分退"),
    ;

    private final int code;

    private final String description;

    SaleOrderRefundTypeEnum(int code, String description)
    {
        this.code = code;
        this.description = description;
    }

    public String getCode()
    {
        return code + "";
    }

    public String getDescription()
    {
        return description;
    }
}
